package com.swh.dao;

import com.swh.dao.base.BaseDao;
import com.swh.entity.QualificationCondition;
import com.swh.entity.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Author: swh
 * @Description:
 * @Date: 2020/12/28 16:19
 * @Version: 1.0
 */
public interface SysRoleDao extends BaseDao<SysRole> {
    @Override
    int insert(SysRole sysRole);

    @Override
    int delete(int id);

    @Override
    int update(SysRole sysRole);

    @Override
    SysRole load(int id);

    @Override
    List<SysRole> pageList(int offset, int pageSize);

    @Override
    int pageListCount(int offset, int pageSize);

    List<Map> selectPage(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize,
                         @Param("condition") QualificationCondition condition);

}
